package br.com.panfleto.cadastro.model.persistence;

import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.ToStringBuilder;

/** @author Hibernate CodeGenerator */
public class TbPanfleto implements Serializable {

	/** identifier field */
	private Integer cod;

	/** persistent field */
	private int mercadoCod;

	/** nullable persistent field */
	private Double preco;

	/** nullable persistent field */
	private Date dataEntrada;

	/** nullable persistent field */
	private Date dataSaida;

	/** full constructor */
	public TbPanfleto(Integer cod, int mercadoCod, Double preco,
			Date dataEntrada, Date dataSaida) {
		this.cod = cod;
		this.mercadoCod = mercadoCod;
		this.preco = preco;
		this.dataEntrada = dataEntrada;
		this.dataSaida = dataSaida;
	}

	/** default constructor */
	public TbPanfleto() {
	}

	/** minimal constructor */
	public TbPanfleto(Integer cod, int mercadoCod) {
		this.cod = cod;
		this.mercadoCod = mercadoCod;
	}

	public Integer getCod() {
		return this.cod;
	}

	public void setCod(Integer cod) {
		this.cod = cod;
	}

	public int getMercadoCod() {
		return this.mercadoCod;
	}

	public void setMercadoCod(int mercadoCod) {
		this.mercadoCod = mercadoCod;
	}

	public Double getPreco() {
		return this.preco;
	}

	public void setPreco(Double preco) {
		this.preco = preco;
	}

	public Date getDataEntrada() {
		return this.dataEntrada;
	}

	public void setDataEntrada(Date dataEntrada) {
		this.dataEntrada = dataEntrada;
	}

	public Date getDataSaida() {
		return this.dataSaida;
	}

	public void setDataSaida(Date dataSaida) {
		this.dataSaida = dataSaida;
	}

	public String toString() {
		return new ToStringBuilder(this).append("cod", getCod()).toString();
	}

}
